package moodish.server;

import moodish.comm.ServerSideMessage;

public class Message implements ServerSideMessage  {
	
	Type type;
	String payload;
	String clientnickname;

	public Message(Type type, String payload, String clientnickname){
		this.type = type;
		this.payload = payload;
		this.clientnickname = clientnickname;
	}
	@Override
	public Type getType() {
		return type;
	}

	@Override
	public String getPayload() {
		return payload;
	}

	@Override
	public String getClientNickname() {
		return clientnickname;
	}
	
	

}

